home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 February / enter-2006-02.iso / files / easy2do_setup.exe / {app} / docs / skin / profile.css.xslt < prev    next >
Encoding:
Extensible Markup Language  |  2005-10-09  |  7.6 KB  |  208 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 2002-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  18.  
  19.   <xsl:import href="../../common/css/forrest.css.xslt"/>
  20.  
  21.   <!-- This is not used by Forrest but makes it possible to debug the 
  22.        stylesheet in standalone editors -->
  23.   <xsl:output method = "text"  omit-xml-declaration="yes"  />
  24.   
  25. <!-- ==================== main block colors ============================ -->
  26.  
  27. <xsl:template match="color[@name='header']">
  28. #top          { background-color: <xsl:value-of select="@value"/>;}  
  29. </xsl:template>
  30.  
  31. <xsl:template match="color[@name='tab-selected']"> 
  32. #top .header .current { background-color: <xsl:value-of select="@value"/>;} 
  33. #top .header .current a:link {  color: <xsl:value-of select="@link"/>;  }
  34. #top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
  35. #top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
  36. </xsl:template> 
  37.  
  38. <xsl:template match="color[@name='tab-unselected']"> 
  39. #tabs li      { background-color: <xsl:value-of select="@value"/> ;} 
  40. #tabs li a:link {  color: <xsl:value-of select="@link"/>;  }
  41. #tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }
  42. #tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }
  43. </xsl:template> 
  44.  
  45. <xsl:template match="color[@name='subtab-selected']">
  46. #level2tabs       { background-color: <xsl:value-of select="@value"/> ;} 
  47. #level2tabs a:link {  color: <xsl:value-of select="@link"/>;  }
  48. #level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
  49. #level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
  50. </xsl:template> 
  51.  
  52. <!--xsl:template match="color[@name='subtab-unselected']">
  53. .level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
  54. .datenote { background-color: <xsl:value-of select="@value"/>;} 
  55. .level2tabstrip.unselected a:link {  color: <xsl:value-of select="@link"/>;  }
  56. .level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
  57. .level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
  58. </xsl:template--> 
  59.  
  60. <xsl:template match="color[@name='heading']">
  61. .heading { background-color: <xsl:value-of select="@value"/>;} 
  62. </xsl:template> 
  63.  
  64. <xsl:template match="color[@name='subheading']">
  65. .boxed { background-color: <xsl:value-of select="@value"/>;} 
  66. .underlined_5     {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
  67. .underlined_10     {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
  68. table caption { 
  69. background-color: <xsl:value-of select="@value"/>; 
  70. color: <xsl:value-of select="@font"/>;
  71. }
  72. </xsl:template> 
  73. <xsl:template match="color[@name='feedback']">    
  74. #feedback {
  75. color: <xsl:value-of select="@font"/>;
  76. background: <xsl:value-of select="@value"/>;
  77. text-align: <xsl:value-of select="@align"/>;
  78. }
  79. #feedback #feedbackto {
  80. color: <xsl:value-of select="@font"/>;
  81. }   
  82. </xsl:template>
  83.  
  84. <xsl:template match="color[@name='breadtrail']">
  85. #main .breadtrail {
  86. background: <xsl:value-of select="@value"/>; 
  87. color: <xsl:value-of select="@font"/>;
  88. }
  89. #main .breadtrail a:link {  color: <xsl:value-of select="@link"/>;  }
  90. #main .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
  91. #main .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
  92. #top .breadtrail {
  93. background: <xsl:value-of select="@value"/>; 
  94. color: <xsl:value-of select="@font"/>;
  95. }
  96. #top .breadtrail a:link {  color: <xsl:value-of select="@link"/>;  }
  97. #top .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
  98. #top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }    
  99. </xsl:template>
  100. <!--Fix for other (old) profiles-->
  101. <xsl:template match="color[@name='navstrip']">
  102. #publishedStrip { 
  103. color: <xsl:value-of select="@font"/>;
  104. background: <xsl:value-of select="@value"/>; 
  105. }
  106. </xsl:template> 
  107. <!--has to go after the nav-strip (no 'navstrip')-->
  108. <xsl:template match="color[@name='published']">
  109. #publishedStrip { 
  110. color: <xsl:value-of select="@font"/>;
  111. background: <xsl:value-of select="@value"/>; 
  112. }
  113. </xsl:template> 
  114. <xsl:template match="color[@name='toolbox']">
  115. #menu .menupagetitle  { background-color: <xsl:value-of select="@value"/>}
  116. </xsl:template> 
  117.  
  118. <xsl:template match="color[@name='border']">
  119. #menu           { border-color: <xsl:value-of select="@value"/>;}
  120. #menu .menupagetitle  { border-color: <xsl:value-of select="@value"/>;}
  121. #menu .menupageitemgroup  { border-color: <xsl:value-of select="@value"/>;}
  122. </xsl:template> 
  123.  
  124. <xsl:template match="color[@name='menu']">
  125. #menu      { background-color: <xsl:value-of select="@value"/>;} 
  126. #menu  {  color: <xsl:value-of select="@font"/>;} 
  127. #menu a:link {  color: <xsl:value-of select="@link"/>;} 
  128. #menu a:visited {  color: <xsl:value-of select="@vlink"/>;} 
  129. #menu a:hover {  
  130. background-color: <xsl:value-of select="@value"/>;
  131. color: <xsl:value-of select="@hlink"/>;} 
  132. </xsl:template> 
  133. <xsl:template match="color[@name='dialog']"> 
  134. #menu .menupagetitle  { color: <xsl:value-of select="@font"/>;}    
  135. #menu .menupageitemgroup     { 
  136. background-color: <xsl:value-of select="@value"/>;
  137. }
  138. #menu .menupageitem {
  139. color: <xsl:value-of select="@font"/>;
  140. #menu .menupageitem a:link {  color: <xsl:value-of select="@link"/>;} 
  141. #menu .menupageitem a:visited {  color: <xsl:value-of select="@vlink"/>;} 
  142. #menu .menupageitem a:hover {  
  143. background-color: <xsl:value-of select="@value"/>;
  144. color: <xsl:value-of select="@hlink"/>;
  145. }
  146. </xsl:template> 
  147. <xsl:template match="color[@name='menuheading']">
  148. #menu h1 {
  149. color: <xsl:value-of select="@font"/>;
  150. background-color: <xsl:value-of select="@value"/>;
  151. }   
  152. </xsl:template> 
  153. <xsl:template match="color[@name='searchbox']"> 
  154. #top .searchbox { 
  155. background-color: <xsl:value-of select="@value"/> ;
  156. color: <xsl:value-of select="@font"/>; 
  157. </xsl:template>
  158.  
  159. <xsl:template match="color[@name='body']">
  160. body{ 
  161. background-color: <xsl:value-of select="@value"/>;
  162. color: <xsl:value-of select="@font"/>;
  163. a:link { color:<xsl:value-of select="@link"/>} 
  164. a:visited { color:<xsl:value-of select="@vlink"/>} 
  165. a:hover { color:<xsl:value-of select="@hlink"/>} 
  166.  
  167. </xsl:template>
  168.  
  169. <xsl:template match="color[@name='footer']"> 
  170. #footer       { background-color: <xsl:value-of select="@value"/>;} 
  171. </xsl:template> 
  172.  
  173.  
  174. <!-- ==================== other colors ============================ -->
  175. <xsl:template match="color[@name='highlight']"> 
  176. .highlight        { background-color: <xsl:value-of select="@value"/>;} 
  177. </xsl:template> 
  178.  
  179. <xsl:template match="color[@name='fixme']"> 
  180. .fixme        { border-color: <xsl:value-of select="@value"/>;} 
  181. </xsl:template> 
  182.  
  183. <xsl:template match="color[@name='note']"> 
  184. .note         { border-color: <xsl:value-of select="@value"/>;} 
  185. </xsl:template> 
  186.  
  187. <xsl:template match="color[@name='warning']"> 
  188. .warning         { border-color: <xsl:value-of select="@value"/>;} 
  189. </xsl:template>
  190.  
  191. <xsl:template match="color[@name='code']"> 
  192. .code         { border-color: <xsl:value-of select="@value"/>;} 
  193. </xsl:template> 
  194.  
  195. <xsl:template match="color[@name='table']"> 
  196. .ForrestTable      { background-color: <xsl:value-of select="@value"/>;} 
  197. </xsl:template> 
  198.  
  199. <xsl:template match="color[@name='table-cell']"> 
  200. .ForrestTable td   { background-color: <xsl:value-of select="@value"/>;} 
  201. </xsl:template> 
  202.  
  203.  
  204. </xsl:stylesheet>
  205.